package com.cchr.acms.util;

import java.text.SimpleDateFormat;
import java.util.Date;

public class DateUtil {

	public static final String MM_DD_YYYY = "MM/dd/yyyy"; 
	
	public static String dateTOString(Date date,String format){
		String str=null;
		
		if(date!=null){
			SimpleDateFormat sdf=new SimpleDateFormat(format);
			try {
				str=sdf.format(date);
			} catch (Exception e) {
				// TODO: handle exception
			}
		}
		
		return str;
	}
}
